package com.zhiyou.service;

import java.sql.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.zhiyou.model.FYDormAttendance;

import net.sf.jsqlparser.statement.select.Select;

public interface DormManageService {

			//判断根据building_id还是class_id来查询考勤记录
			List<LinkedHashMap<String,String>> SelectJuDge(@Param("DormCurrentDate")Date date,@Param("id")Integer id);
			
			/*详情页:根据宿舍id查询学生状态*/
			List<Map<String,String>> SelectByBuildingDetails(@Param("ids")Integer ids,@Param("buildingId")Integer building_id,@Param("DormCurrentDate")Date date,@Param("DormId")Integer dorm_id);

			/*宿舍考勤的模糊查询*/
			List<Map<String,String>> selectByStudentName(@Param("student_name")String student_name);
			
			//修改学生考勤
			FYDormAttendance SDormA(@Param("student_id")Integer student_id,@Param("dorm_current_date") Date dorm_current_date);
			
}
